package carltechnology.com.mahjonggame.base;

import android.app.Application;
import android.content.Context;

import carltechnology.com.mahjonggame.utils.dao.impl.MahjongDatabaseManager;

/**
 * Created by WZTCM on 2016/6/1.
 */
public class MyApplication extends Application {
    private static Context context;
    private static RuningDatePool dataPool;

    public static RuningDatePool getDataPool() {
        return dataPool;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        dataPool = new RuningDatePool();
        MahjongDatabaseManager.getInstance();
    }

    public static Context getContext() {
        return context;
    }
}
